package live.zs.quarkus;

import org.jboss.resteasy.annotations.providers.multipart.PartType;
import org.jboss.resteasy.plugins.providers.multipart.InputPart;

import javax.ws.rs.FormParam;
import javax.ws.rs.core.MediaType;

/**
 * @author madison
 * @description
 * @date 2022/5/2 09:28
 */
public class MultipartBody {

    @FormParam("file")
//    @PartType(MediaType.APPLICATION_OCTET_STREAM)
    public InputPart file;

    @FormParam("fileName")
    @PartType(MediaType.TEXT_PLAIN)
    public String fileName;
}
